<pre class="docs-method-signature"><code>rect.maxRectUniformScaleToFit(limitRectangle [, origin])</code></pre>
<p>Returns a number that specifies the maximum scaling that can be applied to the rectangle along both axes so that it would still fit into <code>limitRectangle</code>.</p>

<p>If <code>origin</code> is specified, the rectangle is scaled around it; otherwise, it is scaled around its center.</p>
